import request from '@/utils/request'

// 查询卡券类型列表
export function listCardType(query) {
  return request({
    url: '/film/cardType/list', 
    method: 'get',
    params: query
  })
}
// 查询卡券类型下拉选
export function listselectType(query) {
  return request({
    url: '/film/cardType/cardTypeSelection',
    method: 'get',
    params: query
  })
}

// 查询卡券类型详细
export function getCardType(id) {
  return request({
    url: '/film/cardType/' + id,
    method: 'get'
  })
}

// 新增卡券类型
export function addCardType(data) {
  return request({
    url: '/film/cardType',
    method: 'post',
    data: data
  })
}

// 修改卡券类型
export function updateCardType(data) {
  return request({
    url: '/film/cardType',
    method: 'put',
    data: data
  })
}

// 删除卡券类型
export function delCardType(id) {
  return request({
    url: '/film/cardType/' + id,
    method: 'delete'
  })
}
